package com.mtx.iocHomeWork.setterInjection;

import com.mtx.iocHomeWork.IGeLi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SetterInjectionMoAttack {
    private IGeLi geLi;

    @Autowired
    public void setGeLi(IGeLi geLi) {
        this.geLi = geLi;
    }

    public String cityGateAsk(){
        return geLi.GeLiName()+"属性注入,墨者革离!";
    }

}
